package com.onesports.intelligent.k12.polarlight.domain.vo.operation;

import com.fasterxml.jackson.annotation.JsonFormat;
import cn.gjing.excel.base.annotation.Excel;
import cn.gjing.excel.base.annotation.ExcelField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;


/**
 * 分佣订单
 *
 * @author
 * @since 1.0.0 2022-07-08
 */
@Data
@ApiModel(value = "分佣订单")
@Excel("分佣订单")
public class CommissionPageVO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单编号")
    @ExcelField(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "订单id")
    private String id;

    @ApiModelProperty(value = "支付时间")
    @ExcelField(value = "支付时间",format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    @ApiModelProperty(value = "应付金额(元)")
    @ExcelField(value = "应付金额（元）", format = "0.00")
    private BigDecimal orderAmount;

    @ApiModelProperty(value = "优惠金额（元）")
    @ExcelField(value = "优惠金额（元）", format = "0.00")
    private BigDecimal discountAmount;

    @ApiModelProperty(value = "实付金额(元)")
    @ExcelField(value = "实付金额（元）", format = "0.00")
    private BigDecimal actuallyAmount;

    @ApiModelProperty(value = "团长分佣（元）")
    @ExcelField(value = "团长分佣（元）", format = "0.00")
    private BigDecimal headSubLedger;

    @ApiModelProperty(value = "团长名称")
    @ExcelField(value = "团长名称")
    private String principal;

    @ApiModelProperty(value = "团长电话")
    @ExcelField(value = "团长电话")
    private String phoneNumber;

    @ApiModelProperty(value = "教练分账（元）")
    @ExcelField(value = "教练分账（元）", format = "0.00")
    private BigDecimal coachSubLedger;

    @ApiModelProperty(value = "教练名称")
    @ExcelField(value = "教练名称")
    private String staffName;

    @ApiModelProperty(value = "教练电话")
    @ExcelField(value = "教练电话")
    private String phone;
}
